//
//  PictureCell.m
//  qiuShiJiangHu
//
//  Created by xalo on 16/1/25.
//  Copyright © 2016年 糗事江湖项目组. All rights reserved.
//

#import "PictureCell.h"
#import "ImageModel.h"
#import "UIImageView+WebCache.h"
@interface PictureCell ()

@property (strong, nonatomic) IBOutlet UIImageView *iconImage;

@property (strong, nonatomic) IBOutlet UILabel *loginLabel;

@property (strong, nonatomic) IBOutlet UILabel *contentLabel;

@property (strong, nonatomic) IBOutlet UIImageView *contentImage;

@property (strong, nonatomic) IBOutlet UILabel *laughLabel;


@property (strong, nonatomic) IBOutlet UILabel *commentLabel;

@property (strong, nonatomic) IBOutlet UILabel *shareLabel;

@property (strong, nonatomic) IBOutlet UIButton *laughButton;

@property (strong, nonatomic) IBOutlet UIButton *unlaughButton;

@property (strong, nonatomic) IBOutlet UIButton *commentButton;

@end



@implementation PictureCell


-(void)setContentViewWithModel:(ImageModel *)model
{
    self.loginLabel.text = model.login;
    
    self.contentLabel.text = model.content;
    
    [self.contentImage sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:[UIImage imageNamed:@"Icon@2x"]];



}








- (IBAction)clickLaughButton:(UIButton *)sender {
}


- (IBAction)clickUnlaughButton:(UIButton *)sender {
}


- (IBAction)clickCommentButton:(UIButton *)sender {
}













- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
